import request from "../../../utils/request";

export function  codeGen(obj){
    return request({
        url:`/admin/demo-table/codeGenerator`,
        method:'get',
        params:{
            'url':obj.url,
            'username':obj.username,
            'password':obj.password,
            'tables':obj.tables,
            'auth':obj.auth,
            'module':obj.module,

        },
        responseType: 'blob'
    })
}
export function  selectAllTablesByDataBase(obj){
    return request({
        url:`/admin/demo-table/selectAllTablesByDataBase`,
        method:'post',
        data:JSON.stringify(obj)
    })
}
